package com.campusevaluation.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campusevaluation.common.exception.BasePage;
import com.campusevaluation.common.exception.Result;
import com.campusevaluation.domain.dto.DepartmentDTO;
import com.campusevaluation.domain.po.Department;
import com.campusevaluation.domain.vo.DepartmentVO;

import java.util.List;

public interface IDepartmentService extends IService<Department> {
    Result<String> createDepartment(DepartmentDTO departmentDTO);

    Result<String> deleteDepartment(Long id);

    Result<Page<Department>> getDepartmentsByPage(BasePage basePage);

    Result<DepartmentVO> getDepartmentById(Long id);

    Result<String> updateDepartment(DepartmentDTO departmentDTO);

    Result<String> deleteBatchByIds(List<Long> ids);
}
